package cn.fl.project.service;

import java.util.List;

import cn.fl.preloan.condition.PrjPrdInvoiceQueryCondition;
import cn.fl.project.dto.PrjPrdInvoiceDTO;
import cn.fl.project.vo.PrjPrdInvoiceVO;
import cn.fl.project.vo.PrjPrdVehInfoVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;

/**
 * @Description: 机动车发票 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface IPrjPrdInvoiceService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public PrjPrdInvoiceVO selectById(Long id)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(PrjPrdInvoiceVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * @Description 根据fileId删除发票信息和发票附件信息
     * @param fileId
     * @return boolean
     * @Author YangRui
     * @Date 2019-11-20 10:46
     **/
    boolean removeInvoice(Long fileId) throws BaseException;
    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(PrjPrdInvoiceVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;
    /**
	 * 查询发票信息
	 * lxb
	 * @param condition
	 * @return
	 * @throws BaseException
	 */
	public List<PrjPrdInvoiceVO> searchPrjPrdInvoiceList(PrjPrdInvoiceQueryCondition condition) throws BaseException;
	
	/**
	 * lxb
	 * 评审流程信审审核查看列表页面
	 */
	public List<PrjPrdInvoiceVO> searchListForXS(PrjPrdInvoiceQueryCondition condition) throws BaseException;

	/**
	 * @Description 根据条件查询发票信息
	 * @param condition
	 * @return java.util.List<cn.fl.project.vo.PrjPrdInvoiceVO>
	 * @Author YangRui
	 * @Date 2019-11-19 17:07
	 **/
	public List<PrjPrdInvoiceVO> searchPrjPrdInvoiceListByCondition(PrjPrdInvoiceQueryCondition condition) throws BaseException;

	/** 
	* @Description:
	* @Param: [prjId, paySchNo, audStsCd] 
	* @return: boolean 
	* @Author: lxy
	* @Date: 2019/12/17 
	*/
	public boolean modifyAudStsByPrjIdAndPaySchNo(String prjId,String paySchNo,String audStsCd)throws BaseException;
    
}
